﻿/* Custom Purple Theme CSS for Navbar and Footer */

/* ===== NAVBAR STYLES ===== */
.navbar {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    box-shadow: 0 4px 20px rgba(106, 17, 203, 0.2);
    padding: 15px 0;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background: rgba(74, 0, 224, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px 0;
    }

.navbar-brand {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 40px;
}

  

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .navbar-nav .nav-link.active {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.2);
        font-weight: 600;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: #ffd700;
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 70%;
    }

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ffd700, #ff6b6b, #4ecdc4);
    }

    .footer h4, .footer h5 {
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        .footer h4::after, .footer h5::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background: #ffd700;
        }

        .footer h5.text-center.text-lg-start::after {
            left: 50%;
            transform: translateX(-50%);
        }

    .footer p {
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.8;
        font-family: 'Open Sans', sans-serif;
    }

    .footer ul.list-unstyled li {
        margin-bottom: 10px;
    }

        .footer ul.list-unstyled li a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
            padding: 3px 0;
            position: relative;
        }

            .footer ul.list-unstyled li a::before {
                content: '→';
                position: absolute;
                left: -20px;
                opacity: 0;
                transition: all 0.3s ease;
            }

            .footer ul.list-unstyled li a:hover {
                color: #ffd700;
                padding-left: 20px;
            }

                .footer ul.list-unstyled li a:hover::before {
                    left: 0;
                    opacity: 1;
                }

/* Social Icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-icons a:hover {
        background: #ffffff;
        color: #6a11cb;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

/* Contact Info */
.footer p.text-center.text-lg-start {
    margin-bottom: 8px;
}

    .footer p.text-center.text-lg-start i {
        margin-right: 8px;
        color: #ffd700;
    }

/* Footer Bottom */
.footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

.footer .row:last-child p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer .row:last-child a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .footer .row:last-child a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(74, 0, 224, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 10px 15px !important;
    }

    .footer {
        text-align: center;
    }

        .footer h5::after {
            left: 50%;
            transform: translateX(-50%);
        }

    .social-icons {
        justify-content: center !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.3rem;
        padding-left: 35px;
    }

        .navbar-brand::before {
            width: 25px;
            height: 25px;
        }

    .footer {
        padding: 40px 0 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer > .container {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Add some padding to sections to account for fixed navbar */
section {
    scroll-margin-top: 80px;
}




/* Registration Page Specific Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-primary {
    background-color: #e0e7ff;
    color: #3730a3;
    border-left: 4px solid #6a11cb;
}

/* Form check styling */
.form-check-input:checked {
    background-color: #6a11cb;
    border-color: #6a11cb;
}

.form-check-input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}

/* Link styling */
a.text-decoration-none {
    color: #6a11cb;
}

    a.text-decoration-none:hover {
        color: #5a0db8;
        text-decoration: underline !important;
    }

/* Card hover effects */
.card.border-0:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive table-like layout for form */
@media (min-width: 576px) {
    .row.g-3 {
        display: flex;
        flex-wrap: wrap;
    }

    .col-md-6 {
        width: 50%;
    }
}